package com.dcw.lixb.designmode.template;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:59:33
 * @desc 描述信息
 */
public abstract class Game {
    abstract void initialize();

    abstract void startPlay();

    abstract void endPlay();

    public final void play() {
        //初始化
        initialize();

        //开始玩游戏
        startPlay();

        //结束游戏
        endPlay();
    }
}
